package com.example.bookmanagement.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.bookmanagement.dto.BookQueryDTO;
import com.example.bookmanagement.entity.Book;

import java.util.Optional;

public interface BookService {
    IPage<Book> getBooksByPage(Page<Book> page, BookQueryDTO queryDTO);
    Optional<Book> getBookById(Long id);
    Book saveBook(Book book);
    void deleteBook(Long id);
    Book updateBook(Long id, Book book);
}    